package com.panda.takeaway.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author John
 * @create 2021-08-11-0:32
 */
@Data
public class BatchVo {

    private Long BatchId;
    @NotNull(message = "批次不能为空")
    private Byte batch;
    private Long shopId;
    @JsonFormat(pattern = "HH:mm")
    @NotNull(message = "批次开始时间不能为空")
    private Date startTime;
    @JsonFormat(pattern = "HH:mm")
    @NotNull(message = "批次结束时间不能为空")
    private Date endTime;
    @JsonFormat(pattern = "HH:mm")
    @NotNull(message = "开始配送时间不能为空")
    private Date deliveryTime;

}
